<?php

namespace App\Http\Controllers\Frontend;


use App\Logics\SiteLogic;


class SiteController extends BaseController
{
    // 站点信息 初始化
    public function initialize()
    {
        parent::initialize();
    }

    // 关于我们
    public function about()
    {
        return $this->getSiteInfo(5);
    }

    // 隐私协议


    // 获取数据
    protected function getSiteInfo($id)
    {
        $logic = new SiteLogic();
        $info  = $logic->info($id);
        if($info === false){
            return $this->error($logic->getError());
        }

        return $this->dispaly('frontend.about', ['info' => $info,'cateId'=>0]);
    }


}


